package com.amoyt.project.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 文章内容块表
 * </p>
 *
 * @author AmoyT
 * @since 2025-08-25
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = false)
@Schema(description = "文章内容块表")
public class ArticleContentBlock implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "block_id", type = IdType.AUTO)
    @Schema(description = "内容块ID")
    private Long blockId;

    @Schema(description = "文章ID")
    private String articleId;

    @Schema(description = "内容块类型(1-文字,2-图片,3-视频,4-文件)")
    private Integer blockType;

    @Schema(description = "内容(文字内容或媒体/文件URL)")
    private String content;

    @Schema(description = "文件名(仅文件类型使用)")
    private String fileName;

    @Schema(description = "排序号(决定显示顺序)")
    private Integer sortNum;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "逻辑删除字段")
    private Integer deleted;

}
